<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>用户信息-修改</title>
    <meta name="description" content="这是一个用户信息页面">
    <meta name="keywords" content="用户信息">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="${contextPath}/assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="${contextPath}/assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="${contextPath}/assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="${contextPath}/assets/css/amazeui.datatables.min.css"/>
    <link rel="stylesheet" href="${contextPath}/assets/css/app.css">
    <script src="${contextPath}/assets/js/jquery.min.js"></script>

</head>

<body data-type="widgets">
<script src="${contextPath}/assets/js/theme.js"></script>
<div class="am-g tpl-g">
    <!-- 头部 -->
    <#include "/pc/common/header.html" />
    <!-- 侧边导航栏 -->
    <#include "/pc/common/left.html" />
    <!-- 内容区域 -->
    <div class="tpl-content-wrapper">
        <div class="row-content am-cf">
            <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                    <div class="widget am-cf">
                        <ol class="am-breadcrumb widget-head">
                            <li><a href="${contextPath}/index.htm" class="am-icon-home">首页</a></li>
                            <li>系统管理</li>
                            <li><a href="${contextPath}/city/list.htm">城市管理</a></li>
                            <#if city?? && city.id??>
                                <li>修改</li>
                                <#else>
                                    <li>新增</li>
                            </#if>
                        </ol>
                        <div class="widget-body  am-fr">
                            <div class="am-u-sm-12">
                                <form class="am-form am-form-horizontal"
                                      action="${contextPath}/city/save.htm" method="post" id="myform">
                                    <fieldset>
                                        <#if city?? && city.id??>
                                            <input type="hidden" name="id" value="${city.id!}">
                                        </#if>
                                        <div class="am-form-group">
                                            <label for="doc-ipt-3" class="am-u-sm-2 am-form-label">城市</label>
                                            <div class="am-u-sm-10">
                                                <input type="text" id="doc-ipt-3" name="cityname" placeholder="输入城市" value="${city.cityname!''}" required>
                                            </div>
                                        </div>
                                        <div class="am-form-group">
                                            <label for="doc-ipt-1"
                                                   class="am-u-sm-2 am-form-label">联系人</label>
                                            <div class="am-u-sm-10">
                                                <input id="doc-ipt-1" type="text" name="contact"
                                                       placeholder="输入联系人" value="${city.contact!''}">
                                            </div>
                                        </div>
                                        <div class="am-form-group">
                                            <label for="doc-ipt-4"
                                                   class="am-u-sm-2 am-form-label">联系人电话</label>
                                            <div class="am-u-sm-10">
                                                <input type="text" id="doc-ipt-4" name="tel"
                                                       value="${city.tel!''}" placeholder="输入联系人电话">
                                            </div>
                                        </div>
                                        <div class="am-form-group">
                                            <label for="doc-ipt-2"
                                                   class="am-u-sm-2 am-form-label">排序号</label>
                                            <div class="am-u-sm-10">
                                                <input type="number" id="doc-ipt-2" name="sort"
                                                       value="${city.sort!''}" placeholder="输入排序号">
                                            </div>
                                        </div>
                                        <div class="am-u-sm-10 am-u-sm-offset-2">
                                            <button type="submit" onclick="sub()" class="am-btn am-btn-primary">
                                                保存
                                            </button>
                                            <a href="javascript:history.back();"
                                               class="am-btn am-btn-default">返回</a>
                                        </div>
                                    </fieldset>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<#include "/pc/common/alert.html" />
<script src="${contextPath}/assets/js/amazeui.min.js"></script>
<script src="${contextPath}/assets/js/amazeui.datatables.min.js"></script>
<script src="${contextPath}/assets/js/dataTables.responsive.min.js"></script>
<script src="${contextPath}/assets/js/amazeui.page.js"></script>
<script src="${contextPath}/assets/js/app.js"></script>
</body>

</html>